<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
    	//Zend_Registry::get('db', $db);
        // action body
        /*$sql = 'SELECT * FROM bugs WHERE bug_id = ?';

		$result = $db->fetchAll($sql, 0);
		var_dump($result);*/
    	/*$db = new Zend_Db_Adapter_Pdo_Mysql(array(
			    'host'     => 'localhost',
			    'username' => 'root',
			    'password' => '',
			    'dbname'   => 'brujulamovil'
			));
	  		$db->getConnection();*/
    	
    	//$bug = new Brujulamovil_Model_DbTable_Bug();
       //var_dump($bd->getAdapter());
	  		$sql = 'SELECT * FROM bugs WHERE bug_id = ?';
		$db = Zend_Registry::get('db');
	  		
		$result = $db->fetchAll($sql, 0);
		var_dump($result);
    }


}

